﻿using DigitalHealth.PACS.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DigitalHealth.PACS.ChatWebSocket.Services
{
    public interface IChatUserServer
    {
        /// <summary>
        /// 查询所有用户
        /// </summary>
        /// <returns></returns>
        IEnumerable<ChatUser> GetChatUsers();
        /// <summary>
        /// 根据id查询指定用户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ChatUser GetChatUsersById(string id);
        /// <summary>
        /// 根据编号查询指定用户
        /// </summary>
        /// <param name="no"></param>
        /// <returns></returns>
        ChatUser GetChatUsersByNo(string no);
        /// <summary>
        /// 查询群组所有用户
        /// </summary>
        /// <param name="groupId"></param>
        /// <returns></returns>
        IEnumerable<ChatUser> GetChatUsersByGroup(ChatGroup chatGroup);
        void Create(ChatUser chatUser);
        void Update(ChatUser chatUser);
        void Delete(ChatUser chatUser);
        bool ChatUserExists(ChatUser chatUser);
    }
}
